class yonghuribaobiaobean {
  String compayName;
  var lastAccumulation;
  var basicValue;
  var serialNumber;
  List<StatisticsDayReportDtoList> statisticsDayReportDtoList;

  yonghuribaobiaobean(
      {this.compayName,
        this.lastAccumulation,
        this.basicValue,
        this.serialNumber,
        this.statisticsDayReportDtoList});

  yonghuribaobiaobean.fromJson(Map<String, dynamic> json) {
    compayName = json['compayName'];
    lastAccumulation = json['lastAccumulation'];
    if(null ==json['basicValue']){
      basicValue=0.0;
    }else{
      basicValue = json['basicValue'];
    }


    serialNumber = json['serialNumber'];
    if (json['statisticsDayReportDtoList'] != null) {
      statisticsDayReportDtoList = new List<StatisticsDayReportDtoList>();
      json['statisticsDayReportDtoList'].forEach((v) {
        statisticsDayReportDtoList
            .add(new StatisticsDayReportDtoList.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['compayName'] = this.compayName;
    data['lastAccumulation'] = this.lastAccumulation;
    data['basicValue'] = this.basicValue;
    data['serialNumber'] = this.serialNumber;
    if (this.statisticsDayReportDtoList != null) {
      data['statisticsDayReportDtoList'] =
          this.statisticsDayReportDtoList.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class StatisticsDayReportDtoList {
  var dayOfDate;
  var accumulation;
  var dailyAmount;
  var correctionAmount;
  var settlementAmount;
  var remark;

  StatisticsDayReportDtoList(
      {this.dayOfDate,
        this.accumulation,
        this.dailyAmount,
        this.correctionAmount,
        this.settlementAmount,
        this.remark});

  StatisticsDayReportDtoList.fromJson(Map<String, dynamic> json) {
    dayOfDate = json['dayOfDate'];
    accumulation = json['accumulation'];
    dailyAmount = json['dailyAmount'];
    correctionAmount = json['correctionAmount'];
    settlementAmount = json['settlementAmount'];
    remark = json['remark'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['dayOfDate'] = this.dayOfDate;
    data['accumulation'] = this.accumulation;
    data['dailyAmount'] = this.dailyAmount;
    data['correctionAmount'] = this.correctionAmount;
    data['settlementAmount'] = this.settlementAmount;
    data['remark'] = this.remark;
    return data;
  }
}
